﻿package com.syxp.pda.entity.system;

import java.util.HashSet;
import java.util.Set;

import com.syxp.pda.entity.base.Department;
import com.syxp.pda.entity.base.User;

/**
 * version: 1.0
 * 
 * date: 2011.07.12
 * 
 * author guanying
 *
 */
public class Role { //角色表
	
	private Integer roleID; //角色编号
	
	private String roleCode; //角色编码
	
	private String roleName; //角色名称
	
	private  String remarks; //备注
	
	//EL_User(用户表)与EL_Role（权限控制表）：多对多（通过EL_Role_User表体现出来）
	private Set<User> users = new HashSet<User>();
	
	//EL_Role（权限表）与El_FunctionDefine（功能表）： 多对多（通过EL_Role_Func表体现出来）
	private Set<FunctionDefine> functionDefines = new HashSet<FunctionDefine>();
	
//	//EL_Role（权限表）与El_Department（部门表）： 多对多（通过EL_Role_Depart表体现出来）
//	private Set<Department> departments = new HashSet<Department>();
//
//	public Set<Department> getDepartments() {
//		return departments;
//	}
//
//	public void setDepartments(Set<Department> departments) {
//		this.departments = departments;
//	}

	public Set<FunctionDefine> getFunctionDefines() {
		return functionDefines;
	}

	public void setFunctionDefines(Set<FunctionDefine> functionDefines) {
		this.functionDefines = functionDefines;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	public Integer getRoleID() {
		return roleID;
	}

	public void setRoleID(Integer roleID) {
		this.roleID = roleID;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
}
